CFLAGS = -g

objects = device.o main.o socket.o select.o



bin:$(objects)
	gcc $(CFLAGS) $^ -o $@ -lpthread

%.o:%.c
	gcc -c $(CFLAGS) $< -o $@

.PHONY : clean
clean:
	rm -rf $(objects) bin
